﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;

namespace Beetle.Web.UI.WebControls
{
    public sealed class SearchItemTextBox : SearchItemBase
    {
        protected override void RenderContent(HtmlTextWriter writer)
        {
            writer.AddAttribute(HtmlTextWriterAttribute.Type, "text");

            if (this.DefaultValue != null)
            {
                writer.AddAttribute(HtmlTextWriterAttribute.Value, this.DefaultValue);
            }

            this.ReaderValueFieldId(writer);
            writer.RenderBeginTag(HtmlTextWriterTag.Input);
            writer.RenderEndTag();
        }

        public override object Clone()
        {
            SearchItemTextBox clone = new SearchItemTextBox();
            return base.Clone(clone);
        }
    }
}
